package org.msfj.common.util.jwt;

import java.io.Serializable;

public class WebJwtInfo implements Serializable, IJWTInfo {

    private String username;

    private String id;

    private Long buffer;

    public WebJwtInfo(String username, String id) {
        this.username = username;
        this.id = id;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Override
    public String getUniqueName() {
        return username;
    }

    @Override
    public String getId() {
        return id.toString();
    }

    @Override
    public String getName() {
        return username;
    }

    @Override
    public long getBuffer() {
        return buffer;
    }

    public void setBuffer(Long buffer) {
        this.buffer = buffer;
    }
}
